function safeUser(pThis,branch_shop_id="",table_code="",callback){
    pThis.$store.dispatch("user/safeUser",{branch_shop_id,table_code,success:(res)=>{
        if(res.code!=200){//token验证失败
            //退出会员，清除缓存
            pThis.$store.commit("user/OUT_LOGIN");
            //跳转到登录页面
            uni.navigateTo({url:"/pages/login/index?branch_shop_id="+branch_shop_id+"&table_code="+table_code+""});
        }
        if(res.code==200){//token验证成功
            if(callback){
                callback()
            }
        }
    }})
}
export default{
    safeUser
}